<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): CPTXYPlotSpace Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_x_y_plot_space.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">CPTXYPlotSpace Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTXYPlotSpace" --><!-- doxytag: inherits="CPTPlotSpace" -->
<p>A plot space using a two-dimensional cartesian coordinate system.  
 <a href="interface_c_p_t_x_y_plot_space.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTXYPlotSpace:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_x_y_plot_space__inherit__graph.png" border="0" usemap="#_c_p_t_x_y_plot_space_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_x_y_plot_space_inherit__map" id="_c_p_t_x_y_plot_space_inherit__map">
<area shape="rect" id="node2" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot." alt="" coords="271,166,379,197"/><area shape="rect" id="node4" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="153,86,233,117"/><area shape="rect" id="node6" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="266,6,384,37"/><area shape="rect" id="node10" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot." alt="" coords="257,86,393,117"/><area shape="rect" id="node8" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html" title="\&lt;NSKeyValueBindingCreation&#45;p\&gt;" alt="" coords="5,6,243,37"/><area shape="rect" id="node13" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="418,86,539,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTXYPlotSpace:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_x_y_plot_space__coll__graph.png" border="0" usemap="#_c_p_t_x_y_plot_space_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_x_y_plot_space_coll__map" id="_c_p_t_x_y_plot_space_coll__map">
<area shape="rect" id="node2" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot." alt="" coords="271,166,379,197"/><area shape="rect" id="node4" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="153,86,233,117"/><area shape="rect" id="node6" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="266,6,384,37"/><area shape="rect" id="node10" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot." alt="" coords="257,86,393,117"/><area shape="rect" id="node8" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html" title="\&lt;NSKeyValueBindingCreation&#45;p\&gt;" alt="" coords="5,6,243,37"/><area shape="rect" id="node13" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="418,86,539,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_x_y_plot_space-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_x_y_plot_space.html#a6752a5841fd3789019bf18986e7398f6">xRange</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The range of the x coordinate. Defaults to a range with <code>location</code> zero (0) and a <code>length</code> of one (1).  <a href="#a6752a5841fd3789019bf18986e7398f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_x_y_plot_space.html#a26ded2764b895a4c656136b581f8d67c">yRange</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The range of the y coordinate. Defaults to a range with <code>location</code> zero (0) and a <code>length</code> of one (1).  <a href="#a26ded2764b895a4c656136b581f8d67c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_x_y_plot_space.html#a04f609abf6a4072daa47b93848a8312a">globalXRange</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The global range of the x coordinate to which the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a6752a5841fd3789019bf18986e7398f6">xRange </a> is constrained.  <a href="#a04f609abf6a4072daa47b93848a8312a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_x_y_plot_space.html#a80bf9e8987247bbe4dc0b5fc07a1214d">globalYRange</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The global range of the y coordinate to which the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a26ded2764b895a4c656136b581f8d67c">yRange </a> is constrained.  <a href="#a80bf9e8987247bbe4dc0b5fc07a1214d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fdb32ef229694a87af877d54933300a"></a><!-- doxytag: member="CPTXYPlotSpace::xScaleType" ref="a6fdb32ef229694a87af877d54933300a" args="" -->
<a class="el" href="_c_p_t_definitions_8h.html#a9564ab0b679e0c37a87f0c8af3a60335">CPTScaleType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_x_y_plot_space.html#a6fdb32ef229694a87af877d54933300a">xScaleType</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The scale type of the x coordinate. Defaults to <a class="el" href="_c_p_t_definitions_8h.html#a6feea278fdabae40d0b58c235df6f7f6ad834e3496afe3f6a4e898a88e272d40e">CPTScaleTypeLinear </a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5713690a3015d43e5136a751d7c3635d"></a><!-- doxytag: member="CPTXYPlotSpace::yScaleType" ref="a5713690a3015d43e5136a751d7c3635d" args="" -->
<a class="el" href="_c_p_t_definitions_8h.html#a9564ab0b679e0c37a87f0c8af3a60335">CPTScaleType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_x_y_plot_space.html#a5713690a3015d43e5136a751d7c3635d">yScaleType</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The scale type of the y coordinate. Defaults to <a class="el" href="_c_p_t_definitions_8h.html#a6feea278fdabae40d0b58c235df6f7f6ad834e3496afe3f6a4e898a88e272d40e">CPTScaleTypeLinear </a>. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A plot space using a two-dimensional cartesian coordinate system. </p>
<p>The <a class="el" href="interface_c_p_t_x_y_plot_space.html#a6752a5841fd3789019bf18986e7398f6">xRange </a> and <a class="el" href="interface_c_p_t_x_y_plot_space.html#a26ded2764b895a4c656136b581f8d67c">yRange </a> determine the mapping between data coordinates and the screen coordinates in the plot area. The "end" of a range is the location plus its length. Note that the length of a plot range can be negative, so the end point can have a lesser value than the starting location.</p>
<p>The global ranges constrain the values of the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a6752a5841fd3789019bf18986e7398f6">xRange </a> and <a class="el" href="interface_c_p_t_x_y_plot_space.html#a26ded2764b895a4c656136b581f8d67c">yRange </a>. Whenever the global range is set (non-nil), the corresponding plot range will be adjusted so that it fits in the global range. When a new range is set to the plot range, it will be adjusted as needed to fit in the global range. This is useful for constraining scrolling, for instance. </p>
</div><hr/><h2>Property Documentation</h2>
<a class="anchor" id="a04f609abf6a4072daa47b93848a8312a"></a><!-- doxytag: member="CPTXYPlotSpace::globalXRange" ref="a04f609abf6a4072daa47b93848a8312a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTXYPlotSpace:<code> [read, write, copy]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The global range of the x coordinate to which the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a6752a5841fd3789019bf18986e7398f6">xRange </a> is constrained. </p>
<p>If non-nil, the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a6752a5841fd3789019bf18986e7398f6">xRange </a> and any changes to it will be adjusted so that it always fits within the <code>globalXRange</code>. If nil (the default), there is no constraint on x. </p>

</div>
</div>
<a class="anchor" id="a80bf9e8987247bbe4dc0b5fc07a1214d"></a><!-- doxytag: member="CPTXYPlotSpace::globalYRange" ref="a80bf9e8987247bbe4dc0b5fc07a1214d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTXYPlotSpace:<code> [read, write, copy]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The global range of the y coordinate to which the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a26ded2764b895a4c656136b581f8d67c">yRange </a> is constrained. </p>
<p>If non-nil, the <a class="el" href="interface_c_p_t_x_y_plot_space.html#a26ded2764b895a4c656136b581f8d67c">yRange </a> and any changes to it will be adjusted so that it always fits within the <code>globalYRange</code>. If nil (the default), there is no constraint on y. </p>

</div>
</div>
<a class="anchor" id="a6752a5841fd3789019bf18986e7398f6"></a><!-- doxytag: member="CPTXYPlotSpace::xRange" ref="a6752a5841fd3789019bf18986e7398f6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTXYPlotSpace:<code> [read, write, copy]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The range of the x coordinate. Defaults to a range with <code>location</code> zero (0) and a <code>length</code> of one (1). </p>
<p>The <a class="el" href="interface_c_p_t_plot_range.html#a4a08297f54ea2d501bd8746f77f06d75">location </a> of the <code>xRange</code> defines the data coordinate associated with the left edge of the plot area. Similarly, the <a class="el" href="interface_c_p_t_plot_range.html#adc543d1939579179e9d6a4614e617a45">end </a> of the <code>xRange</code> defines the data coordinate associated with the right edge of the plot area. </p>

</div>
</div>
<a class="anchor" id="a26ded2764b895a4c656136b581f8d67c"></a><!-- doxytag: member="CPTXYPlotSpace::yRange" ref="a26ded2764b895a4c656136b581f8d67c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTXYPlotSpace:<code> [read, write, copy]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The range of the y coordinate. Defaults to a range with <code>location</code> zero (0) and a <code>length</code> of one (1). </p>
<p>The <a class="el" href="interface_c_p_t_plot_range.html#a4a08297f54ea2d501bd8746f77f06d75">location </a> of the <code>yRange</code> defines the data coordinate associated with the bottom edge of the plot area. Similarly, the <a class="el" href="interface_c_p_t_plot_range.html#adc543d1939579179e9d6a4614e617a45">end </a> of the <code>yRange</code> defines the data coordinate associated with the top edge of the plot area. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_x_y_plot_space_8h_source.html">CPTXYPlotSpace.h</a></li>
<li>Source/CPTXYPlotSpace.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_x_y_plot_space.html">CPTXYPlotSpace</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
